package com.twu.biblioteca.view;

import com.twu.biblioteca.model.item.ItemFormatter;
import com.twu.biblioteca.view.utils.Output;

import java.io.PrintStream;

/**
 * Created with IntelliJ IDEA.
 * User: cschlumb
 * Date: 08/08/2013
 * Time: 11:44
 * To change this template use File | Settings | File Templates.
 */
public class ItemListView implements ItemView {

    private final Output output;

    public ItemListView(Output output) {
        this.output = output;
    }

    @Override
    public void showList(ItemFormatter itemFormatter) {
        output.write(itemFormatter.toFormattedString());
    }
}
